Date Property subtraction bug
-
Rick DeNatale
I replied:
Thanks Paul.Although there is a bug here. I'm not sure that the fix is correct,
although I haven't had my coffee yet this morning.I'm pretty sure that subtracting two PropertyValue::Dates should
result in a PropertyValue::Duration rather than an Integer.Could you send me the icalendar file which caused the failure?
-
Rick DeNatale
Paul later added:
Having read through how the DateTime class handles this, I'm not sure
that the fix is quite right now. That said, there's still a bug.--Paul
-
Rick DeNatale
Okay,
date - date will now produce a duration
date - datetime will also produce a duration
date - duration will produce a datetime
date + duration will produce a datetime -
Rick DeNatale
- State changed from new to resolved
- Milestone set to 0.0.8
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.